package com.brother.realtime.config;

import java.text.DecimalFormat;


public class EngineConfig implements Config {
	public static final String STOP = "stop";
	public static final String START = "start";
	
	
	private String action ;
	
	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	@Override
	public byte[] getData() {
		if(this.action.equalsIgnoreCase(START)){
			return "123456D".getBytes();
		}
		if(this.action.equalsIgnoreCase(STOP)){
			return "123456E".getBytes();
		}
		return "".getBytes();
	}

}
